package com.iecas.entity;

import lombok.Data;

@Data
public class Explosion extends Base{
    private int size;
    private int maxSize;
    private boolean finished;

    public Explosion() {
        this.size = 10;
        this.maxSize = 60;
        this.finished = false;
    }

    public Explosion(int x, int y) {
        setX(x);
        setY(y);
        this.size = 10;
        this.maxSize = 60;
        this.finished = false;
    }

    public void update() {
        size += 2;
        if (size >= maxSize) {
            finished = true;
        }
    }
}
